import type { Metadata } from 'next'
import { getDefaultsForSchema } from 'zod-defaults'

import { RequestCard } from '@/components/cards/request.card'

import { NO_INDEX_PAGE } from '@/constants/seo.constants'

import { requestScheme } from '@/types/request.types'

export const metadata: Metadata = {
	title: 'Создание заявки',
	...NO_INDEX_PAGE
}

export default function NewRequestPage() {
	return (
		<RequestCard
			request_data={getDefaultsForSchema(requestScheme)}
			request_client={undefined}
			createMode={true}
		/>
	)
}
